import type { InjectionKey, Ref } from 'vue';
import type { ModelDetailResult } from '@/apis/pcf/myModel/model/modelManage';

/**
 * 模型详情根文件的provide的key
 */
export const MODEL_DETAIL_ROOT = Symbol('modelDetailRoot') as InjectionKey<ModelDetailRootProvider>;

/**
 * 模型详情根文件的provider
 */
export interface ModelDetailRootProvider {
  /**
   * 模型编号
   */
  modelNo: string;

  modelDetail: Ref<ModelDetailResult | undefined>;
  calculateLoading: Ref<boolean>; // 核算loading
}
